<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>Deletes by Ids</title>
<link media="all" rel="stylesheet" type="text/css" href="styles/03e73060321a0a848018724a6c83de7f-theme-base.css" />
<link media="all" rel="stylesheet" type="text/css" href="styles/03e73060321a0a848018724a6c83de7f-theme-medium.css" />

 </head>
 <body class="docs"><div class="navbar navbar-fixed-top">
  <div class="navbar-inner clearfix">
    <ul class="nav" style="width: 100%">
      <li style="float: left;"><a href="solrclient.deletebyid.html">« SolrClient::deleteById</a></li>
      <li style="float: right;"><a href="solrclient.deletebyqueries.html">SolrClient::deleteByQueries »</a></li>
    </ul>
  </div>
</div>
<div id="breadcrumbs" class="clearfix">
  <ul class="breadcrumbs-container">
    <li><a href="index.html">PHP Manual</a></li>
    <li><a href="class.solrclient.html">SolrClient</a></li>
    <li>Deletes by Ids</li>
  </ul>
</div>
<div id="layout">
  <div id="layout-content"><div id="solrclient.deletebyids" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">SolrClient::deleteByIds</h1>
  <p class="verinfo">(PECL solr &gt;= 0.9.2)</p><p class="refpurpose"><span class="refname">SolrClient::deleteByIds</span> &mdash; <span class="dc-title">Deletes by Ids</span></p>

 </div>

 <div class="refsect1 description" id="refsect1-solrclient.deletebyids-description">
  <h3 class="title">说明</h3>
  <div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="methodname"><strong>SolrClient::deleteByIds</strong></span>(<span class="methodparam"><span class="type">array</span> <code class="parameter">$ids</code></span>): <span class="type"><a href="class.solrupdateresponse.html" class="type SolrUpdateResponse">SolrUpdateResponse</a></span></div>

  <p class="para rdfs-comment">
   Deletes a collection of documents with the specified set of ids.
  </p>

 </div>


 <div class="refsect1 parameters" id="refsect1-solrclient.deletebyids-parameters">
  <h3 class="title">参数</h3>
  <p class="para">
   <dl>
    
     <dt>
<code class="parameter">ids</code></dt>

     <dd>

      <p class="para">
       An array of IDs representing the uniqueKey field declared in the schema for each document to be deleted. This must be an actual php variable.
      </p>
     </dd>

    
   </dl>

  </p>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-solrclient.deletebyids-returnvalues">
  <h3 class="title">返回值</h3>
  <p class="para">
   Returns a <span class="type"><a href="class.solrupdateresponse.html" class="type SolrUpdateResponse">SolrUpdateResponse</a></span> on success and throws an exception on failure.
  </p>
 </div>

 
 <div class="refsect1 errors" id="refsect1-solrclient.deletebyids-errors">
  <h3 class="title">错误／异常</h3>
  <p class="para">
   Throws <span class="classname"><a href="class.solrclientexception.html" class="classname">SolrClientException</a></span> if the client had failed, or there was a connection issue.
  </p>
  <p class="para">
   Throws <span class="classname"><a href="class.solrserverexception.html" class="classname">SolrServerException</a></span> if the Solr Server had failed to process the request.
  </p>
 </div>


 <div class="refsect1 seealso" id="refsect1-solrclient.deletebyids-seealso">
  <h3 class="title">参见</h3>
  <p class="para">
   <ul class="simplelist">
    <li class="member"><span class="methodname"><a href="solrclient.deletebyid.html" class="methodname" rel="rdfs-seeAlso">SolrClient::deleteById()</a> - Delete by Id</span></li>
    <li class="member"><span class="methodname"><a href="solrclient.deletebyquery.html" class="methodname" rel="rdfs-seeAlso">SolrClient::deleteByQuery()</a> - Deletes all documents matching the given query</span></li>
    <li class="member"><span class="methodname"><a href="solrclient.deletebyqueries.html" class="methodname" rel="rdfs-seeAlso">SolrClient::deleteByQueries()</a> - Removes all documents matching any of the queries</span></li>
   </ul>
  </p>
 </div>


</div></div></div></body></html>